//
//  UIButton+catrgory.m
//  PantaKill
//
//  Created by 湛凯杰 on 16/7/28.
//  Copyright © 2016年 湛凯杰. All rights reserved.
//

#import "UIButton+catrgory.h"

@implementation UIButton (catrgory)
-(instancetype)initTypeOfLonginWithTitle:(NSString*)title AndCornerRadius:(CGFloat)cornerRadius{
    self=[super init];
    if (self) {
        [self.layer setMasksToBounds:YES];
        [self.layer setCornerRadius:cornerRadius];
        [self.layer setBorderWidth:0];
        [self setTitle:title forState:UIControlStateNormal];
        [self setBackgroundColor:[UIColor whiteColor]];
        [self setTitleColor:MAIN_BACKCOLOR forState:UIControlStateNormal];
    }return self;
}
@end
